package com.xxxy;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MonitorController {
    @SentinelResource(value = "monitor-hello",blockHandler = "handle",blockHandlerClass = MonitorBlockHandler.class)
    @GetMapping("/monitor/hello")
    public String hello(){
        return "给我100";
    }
    @GetMapping("/associate")
    public String associate(){
        return "给我1000";
    }
}
